package com.example.reception.entity;

import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * author: adnaan
 * create: 2023-11-05 19:23
 * Description:
 */
@Document("order_list")
public class Order {

    private String id;

    private String product_id;

    private String user_id;

    private Integer quantity;

    private Double total_price;

    private String status;

    private Date purchase_date;

    private String address;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProduct_id() {
        return product_id;
    }

    public void setProduct_id(String product_id) {
        this.product_id = product_id;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Double getTotal_price() {
        return total_price;
    }

    public void setTotal_price(Double total_price) {
        this.total_price = total_price;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getPurchase_date() {
        return purchase_date;
    }

    public void setPurchase_date(Date purchase_date) {
        this.purchase_date = purchase_date;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id='" + id + '\'' +
                ", product_id='" + product_id + '\'' +
                ", user_id='" + user_id + '\'' +
                ", quantity=" + quantity +
                ", total_price=" + total_price +
                ", status='" + status + '\'' +
                ", purchase_date=" + purchase_date +
                ", address='" + address + '\'' +
                '}';
    }
}
